'use strict';

module.exports = app => {
  const { router, controller: { userRelation } } = app;
  // const userExist = app.middleware.userExist();
  const baseUrl = '/api/userRelation';
  router.get(baseUrl + '/my', userRelation.indexMy);
  router.get(baseUrl + '/myFollow', userRelation.indexMyFollow);
  router.get(baseUrl + '/isFollow', userRelation.isFollow);
  router.resources('userRelation', baseUrl, userRelation);
};
